<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Dokumentacja klasy ShopDAO.CommentDAO</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;klas</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarchia&nbsp;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&nbsp;klas</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_shop_d_a_o.html">ShopDAO</a>.<a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html">CommentDAO</a>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja klasy ShopDAO.CommentDAO</h1><!-- doxytag: class="ShopDAO::CommentDAO" -->
<p><a href="class_shop_d_a_o_1_1_comment_d_a_o-members.html">Lista wszystkich składowych.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#a74c8cacfd7b69bda6e0fd5853fc8c0bd">CommentDAO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_comment.html">Comment</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#a7e7646a3cb87299a19e5cedb4ad58a35">GetCommentForProduct</a> (int productId, bool hidden)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera komentarze dla produktu.(Downloads comments for a product.).  <a href="#a7e7646a3cb87299a19e5cedb4ad58a35"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#a5b562bf3627445ead8e59f1deb3b7488">AddCommentToProduct</a> (<a class="el" href="class_shop_model_1_1_comment.html">Comment</a> comment, int productId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dodaje komentarz do produktu.(Adds comment to the product.).  <a href="#a5b562bf3627445ead8e59f1deb3b7488"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">decimal&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#ab0d012b7ea08a7de236cab2124ae891e">GetAvgRateForProduct</a> (int _ProductID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera srednia ocene danego produktu.(Downloads average mark of given product.).  <a href="#ab0d012b7ea08a7de236cab2124ae891e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_comment_statistics.html">CommentStatistics</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#add48fc30592f091b8e2bd4f0d82e909e">GetProductsSortedByCommentsDate</a> (int?LanguageID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera produkty posortowane wedlug daty dodania komentarza.(Downloads products sorted according to date of comment addition.).  <a href="#add48fc30592f091b8e2bd4f0d82e909e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_comment_d_a_o.html#a65785f8e9e8c3f9e646d40509ba8dda9">UpdateCommentsState</a> (int productID, string acceptList, string unacceptList, string hideList, string unhideList)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Uaktualnianie status komentarza.(Updates comment’s status.).  <a href="#a65785f8e9e8c3f9e646d40509ba8dda9"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00012">12</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="a74c8cacfd7b69bda6e0fd5853fc8c0bd"></a><!-- doxytag: member="ShopDAO::CommentDAO::CommentDAO" ref="a74c8cacfd7b69bda6e0fd5853fc8c0bd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ShopDAO.CommentDAO.CommentDAO </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00016">16</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="a5b562bf3627445ead8e59f1deb3b7488"></a><!-- doxytag: member="ShopDAO::CommentDAO::AddCommentToProduct" ref="a5b562bf3627445ead8e59f1deb3b7488" args="(Comment comment, int productId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.CommentDAO.AddCommentToProduct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shop_model_1_1_comment.html">Comment</a>&nbsp;</td>
          <td class="paramname"> <em>comment</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productId</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dodaje komentarz do produktu.(Adds comment to the product.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>comment</em>&nbsp;</td><td>Obiekt klasy Comment.(Comment class object.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>productId</em>&nbsp;</td><td>Unikalny Id produktu.(Unique ID product.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca prawde w przypadku poprawnego dodania komentarza.(Returns ‘truth’ when comment successfully added.)</dd></dl>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00070">70</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ab0d012b7ea08a7de236cab2124ae891e"></a><!-- doxytag: member="ShopDAO::CommentDAO::GetAvgRateForProduct" ref="ab0d012b7ea08a7de236cab2124ae891e" args="(int _ProductID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">decimal ShopDAO.CommentDAO.GetAvgRateForProduct </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_ProductID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera srednia ocene danego produktu.(Downloads average mark of given product.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ProductID</em>&nbsp;</td><td>Unikalny Id produktu.(Unique ID product.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca obiekt typu decimal.(Returns decimal object)</dd></dl>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00109">109</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7e7646a3cb87299a19e5cedb4ad58a35"></a><!-- doxytag: member="ShopDAO::CommentDAO::GetCommentForProduct" ref="a7e7646a3cb87299a19e5cedb4ad58a35" args="(int productId, bool hidden)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_comment.html">Comment</a>&gt; ShopDAO.CommentDAO.GetCommentForProduct </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>hidden</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera komentarze dla produktu.(Downloads comments for a product.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>productId</em>&nbsp;</td><td>Unikalny Id produktu.(Unique ID product.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hidden</em>&nbsp;</td><td>Status komentarza ukryty.(Hidden comment’s status.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca liste obiektow klasy Comment.(Returns list of Comment object.)</dd></dl>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00032">32</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="add48fc30592f091b8e2bd4f0d82e909e"></a><!-- doxytag: member="ShopDAO::CommentDAO::GetProductsSortedByCommentsDate" ref="add48fc30592f091b8e2bd4f0d82e909e" args="(int?LanguageID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_comment_statistics.html">CommentStatistics</a>&gt; ShopDAO.CommentDAO.GetProductsSortedByCommentsDate </td>
          <td>(</td>
          <td class="paramtype">int?&nbsp;</td>
          <td class="paramname"> <em>LanguageID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera produkty posortowane wedlug daty dodania komentarza.(Downloads products sorted according to date of comment addition.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>LanguageID</em>&nbsp;</td><td>Unikalny Id jezyka.(Unique ID of the Language.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca liste obiektow klasy CommentStatistic.(Returns List of CommentStatistic objects.)</dd></dl>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00141">141</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a65785f8e9e8c3f9e646d40509ba8dda9"></a><!-- doxytag: member="ShopDAO::CommentDAO::UpdateCommentsState" ref="a65785f8e9e8c3f9e646d40509ba8dda9" args="(int productID, string acceptList, string unacceptList, string hideList, string unhideList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.CommentDAO.UpdateCommentsState </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>acceptList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>unacceptList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>hideList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>unhideList</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Uaktualnianie status komentarza.(Updates comment’s status.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>productID</em>&nbsp;</td><td>Unikalny Id produktu.(Unique ID of the product.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>acceptList</em>&nbsp;</td><td>status komentarza akceptowany.(acceptable comment’s status.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>unacceptList</em>&nbsp;</td><td>status komentarza nieakceptowany.(Unacceptable comment’s status.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hideList</em>&nbsp;</td><td>status komentarza ukryty.(Hidden comment’s status.)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>unhideList</em>&nbsp;</td><td>status komentarza widoczny.(Visible comment’s status.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca prawde w przypadku poprawnego uaktualniania statusu komentarza.(Returns ‘truth’ when comment’s status update succeeded.)</dd></dl>

<p>Definicja w linii <a class="el" href="_comment_d_a_o_8cs_source.html#l00189">189</a> pliku <a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a>.</p>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z pliku:<ul>
<li>D:/CentrumXP/e-Commerce/eCommerceDev/SklepDAO/<a class="el" href="_comment_d_a_o_8cs_source.html">CommentDAO.cs</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:21 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
